package com.yun.zhong.fu.codelianxi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@SpringBootApplication
public class CodeLianxiApplication {

    public static void main(String[] args) {

        SpringApplication.run(CodeLianxiApplication.class, args);

    }


    @Bean
    @Profile("test") //指定加载配置文件的类型进行执行
    public void test(){
        System.out.println("666666666666666666------------------------------");
    }

}
